package www.openteam.com.bean;

import com.google.gson.Gson;
import com.google.gson.reflect.TypeToken;

import java.lang.reflect.Type;
import java.util.ArrayList;
import java.util.List;

/**
 * Created by OT on 2017-10-20.
 */

public class SendRcvBean {

    /**
     * status : 1
     * info : 成功
     * data : {"data":[{"rownumber":"1","procno":"DPO15090119","prodcode":"dgBJPH15-00022","name":"POC-81AJ - CLR-4.7in.(改磁铁)","PartID":"","aprocedure":5990,"aname":"精品检验","custid":"yljy01","custname":"深圳市永利佳源包装有限公司","onumb":"43453.00","backcount":6000,"procID":6,"price":0,"groupname":"","prodprocPID":1},{"rownumber":"2","procno":"DPO15090119","prodcode":"dgBJPH15-00022","name":"POC-81AJ - CLR-4.7in.(改磁铁)","PartID":"","aprocedure":6990,"aname":"成品检验包装3D","custid":"yljy01","custname":"深圳市永利佳源包装有限公司","onumb":"43453.00","backcount":6000,"procID":7,"price":0,"groupname":"","prodprocPID":2},{"rownumber":"3","procno":"DPO15090119","prodcode":"dgBJPH15-00022","name":"POC-81AJ - CLR-4.7in.(改磁铁)","PartID":"","aprocedure":7010,"aname":"协包组装","custid":"yljy01","custname":"深圳市永利佳源包装有限公司","onumb":"43453.00","backcount":6000,"procID":8,"price":0,"groupname":"","prodprocPID":3},{"rownumber":"4","procno":"DPO15090120","prodcode":"dgBJPH15-00024","name":"POC-86AJ - BLK-4.7in.(改磁铁)","PartID":"底盒","aprocedure":5010,"aname":"纸品面检","custid":"yljy01","custname":"深圳市永利佳源包装有限公司","onumb":"12120.00","backcount":0,"procID":10,"price":0,"groupname":"底盒内衬","prodprocPID":12},{"rownumber":"5","procno":"DPO15090120","prodcode":"dgBJPH15-00024","name":"POC-86AJ - BLK-4.7in.(改磁铁)","PartID":"底盒","aprocedure":5010,"aname":"纸品面检","custid":"yljy01","custname":"深圳市永利佳源包装有限公司","onumb":"12310.00","backcount":0,"procID":11,"price":0,"groupname":"底盒面纸","prodprocPID":10},{"rownumber":"6","procno":"DPO15090120","prodcode":"dgBJPH15-00024","name":"POC-86AJ - BLK-4.7in.(改磁铁)","PartID":"皮壳","aprocedure":5010,"aname":"纸品面检","custid":"yljy01","custname":"深圳市永利佳源包装有限公司","onumb":"12141.00","backcount":0,"procID":12,"price":0,"groupname":"皮壳内衬","prodprocPID":28},{"rownumber":"7","procno":"DPO15090120","prodcode":"dgBJPH15-00024","name":"POC-86AJ - BLK-4.7in.(改磁铁)","PartID":"底盒","aprocedure":5230,"aname":"内盒成型","custid":"yljy01","custname":"深圳市永利佳源包装有限公司","onumb":"12310.00","backcount":0,"procID":13,"price":0,"groupname":"底盒面纸","prodprocPID":11},{"rownumber":"8","procno":"DPO15090120","prodcode":"dgBJPH15-00024","name":"POC-86AJ - BLK-4.7in.(改磁铁)","PartID":"","aprocedure":5990,"aname":"精品检验","custid":"yljy01","custname":"深圳市永利佳源包装有限公司","onumb":"12141.00","backcount":0,"procID":14,"price":0,"groupname":"","prodprocPID":1},{"rownumber":"9","procno":"DPO15090120","prodcode":"dgBJPH15-00024","name":"POC-86AJ - BLK-4.7in.(改磁铁)","PartID":"","aprocedure":6990,"aname":"成品检验包装3D","custid":"yljy01","custname":"深圳市永利佳源包装有限公司","onumb":"12141.00","backcount":0,"procID":15,"price":0,"groupname":"","prodprocPID":2},{"rownumber":"10","procno":"DPO15090120","prodcode":"dgBJPH15-00024","name":"POC-86AJ - BLK-4.7in.(改磁铁)","PartID":"","aprocedure":7010,"aname":"协包组装","custid":"yljy01","custname":"深圳市永利佳源包装有限公司","onumb":"12141.00","backcount":0,"procID":16,"price":0,"groupname":"","prodprocPID":3},{"rownumber":"11","procno":"DPO15090120","prodcode":"dgBJPH15-00024","name":"POC-86AJ - BLK-4.7in.(改磁铁)","PartID":"皮壳","aprocedure":7010,"aname":"协包组装","custid":"yljy01","custname":"深圳市永利佳源包装有限公司","onumb":"12162.00","backcount":0,"procID":17,"price":0,"groupname":"皮壳面纸","prodprocPID":27},{"rownumber":"12","procno":"DPO15090121","prodcode":"dgBJPH15-00023","name":"POC-82AJ -SMK-4.7in.(改磁铁)","PartID":"底盒","aprocedure":5010,"aname":"纸品面检","custid":"yljy01","custname":"深圳市永利佳源包装有限公司","onumb":"12310.00","backcount":0,"procID":18,"price":0,"groupname":"底盒面纸","prodprocPID":10},{"rownumber":"13","procno":"DPO15090121","prodcode":"dgBJPH15-00023","name":"POC-82AJ -SMK-4.7in.(改磁铁)","PartID":"底盒","aprocedure":5010,"aname":"纸品面检","custid":"yljy01","custname":"深圳市永利佳源包装有限公司","onumb":"12120.00","backcount":0,"procID":19,"price":0,"groupname":"底盒内衬","prodprocPID":12},{"rownumber":"14","procno":"DPO15090121","prodcode":"dgBJPH15-00023","name":"POC-82AJ -SMK-4.7in.(改磁铁)","PartID":"皮壳","aprocedure":5010,"aname":"纸品面检","custid":"yljy01","custname":"深圳市永利佳源包装有限公司","onumb":"12162.00","backcount":0,"procID":20,"price":0,"groupname":"皮壳面纸","prodprocPID":25},{"rownumber":"15","procno":"DPO15090121","prodcode":"dgBJPH15-00023","name":"POC-82AJ -SMK-4.7in.(改磁铁)","PartID":"皮壳","aprocedure":5010,"aname":"纸品面检","custid":"yljy01","custname":"深圳市永利佳源包装有限公司","onumb":"12141.00","backcount":0,"procID":21,"price":0,"groupname":"皮壳内衬","prodprocPID":28},{"rownumber":"16","procno":"DPO15090121","prodcode":"dgBJPH15-00023","name":"POC-82AJ -SMK-4.7in.(改磁铁)","PartID":"底盒","aprocedure":5230,"aname":"内盒成型","custid":"yljy01","custname":"深圳市永利佳源包装有限公司","onumb":"12310.00","backcount":0,"procID":22,"price":0,"groupname":"底盒面纸","prodprocPID":11},{"rownumber":"17","procno":"DPO15090121","prodcode":"dgBJPH15-00023","name":"POC-82AJ -SMK-4.7in.(改磁铁)","PartID":"","aprocedure":5990,"aname":"精品检验","custid":"yljy01","custname":"深圳市永利佳源包装有限公司","onumb":"12141.00","backcount":0,"procID":23,"price":0,"groupname":"","prodprocPID":1},{"rownumber":"18","procno":"DPO15090121","prodcode":"dgBJPH15-00023","name":"POC-82AJ -SMK-4.7in.(改磁铁)","PartID":"","aprocedure":6990,"aname":"成品检验包装3D","custid":"yljy01","custname":"深圳市永利佳源包装有限公司","onumb":"12141.00","backcount":0,"procID":24,"price":0,"groupname":"","prodprocPID":2},{"rownumber":"19","procno":"DPO15090121","prodcode":"dgBJPH15-00023","name":"POC-82AJ -SMK-4.7in.(改磁铁)","PartID":"","aprocedure":7010,"aname":"协包组装","custid":"yljy01","custname":"深圳市永利佳源包装有限公司","onumb":"12141.00","backcount":0,"procID":25,"price":0,"groupname":"","prodprocPID":3},{"rownumber":"20","procno":"DPO15090121","prodcode":"dgBJPH15-00023","name":"POC-82AJ -SMK-4.7in.(改磁铁)","PartID":"皮壳","aprocedure":7010,"aname":"协包组装","custid":"yljy01","custname":"深圳市永利佳源包装有限公司","onumb":"12162.00","backcount":0,"procID":26,"price":0,"groupname":"皮壳面纸","prodprocPID":27}]}
     */

    private int status;
    private String info;
    private DataBeanX data;

    public static List<SendRcvBean> arraySendRcvBeanFromData(String str) {

        Type listType = new TypeToken<ArrayList<SendRcvBean>>() {
        }.getType();

        return new Gson().fromJson(str, listType);
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getInfo() {
        return info;
    }

    public void setInfo(String info) {
        this.info = info;
    }

    public DataBeanX getData() {
        return data;
    }

    public void setData(DataBeanX data) {
        this.data = data;
    }

    public static class DataBeanX {
        private List<DataBean> data;

        public static List<DataBeanX> arrayDataBeanXFromData(String str) {

            Type listType = new TypeToken<ArrayList<DataBeanX>>() {
            }.getType();

            return new Gson().fromJson(str, listType);
        }

        public List<DataBean> getData() {
            return data;
        }

        public void setData(List<DataBean> data) {
            this.data = data;
        }

        public static class DataBean {
            /**
             * rownumber : 1
             * procno : DPO15090119
             * prodcode : dgBJPH15-00022
             * name : POC-81AJ - CLR-4.7in.(改磁铁)
             * PartID :
             * aprocedure : 5990
             * aname : 精品检验
             * custid : yljy01
             * custname : 深圳市永利佳源包装有限公司
             * onumb : 43453.00
             * backcount : 6000
             * procID : 6
             * price : 0
             * groupname :
             * prodprocPID : 1
             */

            private String rownumber;
            private String procno;
            private String prodcode;
            private String name;
            private String PartID;
            private int aprocedure;
            private String aname;
            private String custid;
            private String custname;
            private String onumb;
            private int backcount;
            private int procID;
            private int price;
            private String groupname;
            private int prodprocPID;

            public static List<DataBean> arrayDataBeanFromData(String str) {

                Type listType = new TypeToken<ArrayList<DataBean>>() {
                }.getType();

                return new Gson().fromJson(str, listType);
            }

            public String getRownumber() {
                return rownumber;
            }

            public void setRownumber(String rownumber) {
                this.rownumber = rownumber;
            }

            public String getProcno() {
                return procno;
            }

            public void setProcno(String procno) {
                this.procno = procno;
            }

            public String getProdcode() {
                return prodcode;
            }

            public void setProdcode(String prodcode) {
                this.prodcode = prodcode;
            }

            public String getName() {
                return name;
            }

            public void setName(String name) {
                this.name = name;
            }

            public String getPartID() {
                return PartID;
            }

            public void setPartID(String PartID) {
                this.PartID = PartID;
            }

            public int getAprocedure() {
                return aprocedure;
            }

            public void setAprocedure(int aprocedure) {
                this.aprocedure = aprocedure;
            }

            public String getAname() {
                return aname;
            }

            public void setAname(String aname) {
                this.aname = aname;
            }

            public String getCustid() {
                return custid;
            }

            public void setCustid(String custid) {
                this.custid = custid;
            }

            public String getCustname() {
                return custname;
            }

            public void setCustname(String custname) {
                this.custname = custname;
            }

            public String getOnumb() {
                return onumb;
            }

            public void setOnumb(String onumb) {
                this.onumb = onumb;
            }

            public int getBackcount() {
                return backcount;
            }

            public void setBackcount(int backcount) {
                this.backcount = backcount;
            }

            public int getProcID() {
                return procID;
            }

            public void setProcID(int procID) {
                this.procID = procID;
            }

            public int getPrice() {
                return price;
            }

            public void setPrice(int price) {
                this.price = price;
            }

            public String getGroupname() {
                return groupname;
            }

            public void setGroupname(String groupname) {
                this.groupname = groupname;
            }

            public int getProdprocPID() {
                return prodprocPID;
            }

            public void setProdprocPID(int prodprocPID) {
                this.prodprocPID = prodprocPID;
            }
        }
    }
}
